package cd.safe.school.activity;

import cd.safe.school.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class CourseWareActivity extends Activity implements OnClickListener {
	public static Handler handler;
	private Button english_write;
	private Button composition;
	private Button parse;
	private Button subject_library;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.courseware);
		english_write = (Button) findViewById(R.id.english_write);
		composition = (Button) findViewById(R.id.composition);
		parse = (Button) findViewById(R.id.parse);
		subject_library = (Button) findViewById(R.id.subject_library);

		english_write.setOnClickListener(this);
		composition.setOnClickListener(this);
		parse.setOnClickListener(this);
		subject_library.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {
		
		switch (v.getId()) {
		case R.id.english_write:
			handler.sendEmptyMessage(2);

			break;
		case R.id.composition:

			break;
		case R.id.parse:

			break;
		case R.id.subject_library:

			break;

		}

	}
}
